//
//  ST_AudioPlayer.h
//  ShiTing
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 liudianliang. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol AudioPlayerDelegate <NSObject>

@optional
- (void)avplayerChangeCurrentTime:(float)progress;

//- (void)avplayerPlay;

//- (void)avplayerStop;

- (void)avplayerPause;
// 新添加的代理方,音乐结束时触发
- (void)avplayerDidFinish;


@end

@interface ST_AudioPlayer : NSObject

@property (nonatomic, copy) NSString *urlStr;

@property (nonatomic, assign) id<AudioPlayerDelegate>delegate;
+ (instancetype)sharedAudio;

- (void)play1;

- (void)pause1;

//- (void)stop1;



- (void)seekToTime:(float)progress;

@end
